package com.heima.car_platform;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Car> inputCar = new ArrayList<Car>();
        ArrayList<Car> outputCar = new ArrayList<Car>();
        CarRentalCompany cR = new CarRentalCompany(inputCar, outputCar);
        Car c1 = new Car("红旗", "r16", "2024");
        Car c2 = new Car("长城", "c16", "2024");
        cR.addCar(c1);
        cR.addCar(c2);
        cR.displayCars();
        cR.rentCar(c1);
        cR.rentCar(c2);
        cR.returnCar();
    }

}
